package top.z.work.module.system.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.z.work.framework.orm.core.BaseEntity;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 在线用户记录实体类
 *
 * @author zaoangod
 * @since 2024-07-25
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Table(value = "system_user_online")
public class SystemUserOnline extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    // 用户会话id
    @Id
    private Long          tokenId;
    // 登录账号
    private String        loginName;
    // token
    private String        token;
    // 创建时间
    private LocalDateTime loginTime;
    // 过期时间
    private LocalDateTime expireTime;

}
